#include <bits/stdc++.h>

using namespace std;

int n;
long long arr[46];

int main()
{
    cin >> n;
    arr[1] = 0;
    arr[2] = 1;
    for (int i = 3; i <= n;++i)
    {
        arr[i] = arr[i - 1] + arr[i - 2];
    }
    for (int i = 1; i <= n; ++i)
    {
        cout << arr[i] << " ";
    }
    return 0;
}